package com.happystreet.info
{
	/**
	 * item表背景物品Info
	 * @author Liseen
	 * 
	 */	
	public class BackgroundInfo extends ItemInfo
	{
		//层表
		public var layerTable:Array;
		/**
		 *背景层包括多个单独的层
		 * @param data
		 * 
		 */		
		public function BackgroundInfo(data:XML)
		{
			var layer:XML;
			var backLayerInfo:BackgroundLayerInfo;
			super(data);
			
			this.layerTable = new Array();
			for each (layer in data..layer)
			{
				backLayerInfo = new BackgroundLayerInfo(layer);
				this.addLayer(backLayerInfo);
			}
		}
		
		/**
		 *分别添加各个层到layerTable
		 * @param info
		 * 
		 */		
		private function addLayer(info:BackgroundLayerInfo):void
		{
			this.layerTable.push(info);
		}
	}
}